package com.example.index.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.io.Serializable;

/**
 * 学生作品(HomeWork)实体类
 *
 * @author makejava
 * @since 2023-08-29 17:13:55
 */
public class HomeWork implements Serializable {
    private static final long serialVersionUID = 788010526473865506L;
    /**
     * 图片ID
     */
    private Integer imageId;
    /**
     * 学生作品时间
     */

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date worksTime;
    /**
     * 作者姓名
     */
    private String authorName;
    /**
     * 作品分类：约定 1.平面设计作品 2 电子商务设计作品 3 建筑装饰设计作品 4 游戏动漫设计作品 5 网络营销设计作品 6 电子竞技作品
     */
    private Integer worksStyle;
    /**
     * 图片路径
     */
    private String imagePath;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 修改时间
     */
    private Date updateTime;


    public Integer getImageId() {
        return imageId;
    }

    public void setImageId(Integer imageId) {
        this.imageId = imageId;
    }

    public Date getWorksTime() {
        return worksTime;
    }

    public void setWorksTime(Date worksTime) {
        this.worksTime = worksTime;
    }

    public String getAuthorName() {
        return authorName;
    }

    public void setAuthorName(String authorName) {
        this.authorName = authorName;
    }

    public Integer getWorksStyle() {
        return worksStyle;
    }

    public void setWorksStyle(Integer worksStyle) {
        this.worksStyle = worksStyle;
    }

    public String getImagePath() {
        return imagePath;
    }

    public void setImagePath(String imagePath) {
        this.imagePath = imagePath;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "HomeWork{" +
                "imageId=" + imageId +
                ", worksTime=" + worksTime +
                ", authorName='" + authorName + '\'' +
                ", worksStyle=" + worksStyle +
                ", imagePath='" + imagePath + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                '}';
    }
}

